package net.xdclass.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class LoginUser {

    //主键
    private Long id;
    //名称
    private String name;
    //头像
    @JsonProperty(value = "head_img")
    private String headImg;
    //邮箱
    private String mail;

    public LoginUser(Long id, String name, String headImg, String mail) {
        this.id = id;
        this.name = name;
        this.headImg = headImg;
        this.mail = mail;
    }

    public LoginUser(){}
}
